home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / Makefile < prev    next >
Makefile  |  1996-08-03  |  1KB  |  66 lines

  1. LOCAL_INSTALL=local_install
  2. LOCAL_POSTINSTALL=local_postinstall
  3. DIRS = misc translate dialog xconf askrunlevel netconf dnsconf mailconf \
  4.     uucp userconf fstab main conf.files help.files images
  5.  
  6. include rules.mak
  7.  
  8. # preset info for gdebug
  9. dbg:
  10.     dbgset -a. -b. -m/tmp/modules.dbg -r/tmp/ctrl.dbg -t/tmp/types.lst $(DIRS)
  11.     typidx /tmp/types.lst  /tmp/types.dbg
  12.  
  13.  
  14. package: strip package.gen
  15.  
  16. package-nostrip: package.gen
  17.  
  18. install.dir:
  19.     mkdir -p /install
  20.     cp conf.files/doinst.sh /install
  21.     chmod +x /install/doinst.sh
  22.     cp conf.files/rc.M /install
  23.     cp conf.files/inittab.redhat /install
  24.     chmod +x /install/rc.M
  25.  
  26.  
  27. package.gen: install.dir
  28.     (cd /; tar zcvf /tmp/linuxconf-$(LINUXCONF_REV).bin-$(BINFORM).tar.gz \
  29.         bin/linuxconf usr/lib/linuxconf install/doinst.sh \
  30.         var/run/netconf.level \
  31.         usr/lib/terminfo/c/con80x25 \
  32.         usr/lib/terminfo/l/linux \
  33.         install/rc.M \
  34.         install/inittab.redhat)
  35.  
  36. #        var/named/root.cache \
  37.  
  38. strip:
  39.     strip /bin/linuxconf
  40.  
  41.     
  42.  
  43. ANNOUNCE: ANNOUNCE.txt translate/sgml2flat
  44.     @translate/sgml2flat $< $@
  45.     @rm -f $<
  46.  
  47. translate/sgml2flat: translate/sgml2flat.c
  48.     make -C translate sgml2flat
  49.  
  50.  
  51. local_install: 
  52.     @echo
  53.     @echo Installing linuxconf in /usr/lib/linuxconf
  54.     @echo The main utility is /bin/linuxconf
  55.     @echo A bunch of symlinks are install in /bin and /sbin
  56.     @echo
  57.     @echo -n "Sleeping 4 seconds ..."
  58.     @sleep 4
  59.     @echo
  60.  
  61. local_postinstall: install.dir
  62.     @echo
  63.     @echo Checking RC scripts
  64.     @sh /install/doinst.sh
  65.  
  66.